package com.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.crm.entity.Students;
import com.crm.mapper.StudentsMapper;
import com.crm.service.StudentsService;

@Service
public class StudentsServiceImpl implements StudentsService {

	@Autowired
	private StudentsMapper studentsMapper;
	
	@Override
	public int deleteByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return studentsMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Students record) {
		// TODO Auto-generated method stub
		return studentsMapper.insert(record);
	}

	@Override
	public Students selectByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return studentsMapper.selectByPrimaryKey(id);
	}

	@Override
	public int update(Students record) {
		// TODO Auto-generated method stub
		return studentsMapper.update(record);
	}

	@Override
	public List<Students> selectAll(Integer setValue, Integer limit,String netpusherid,String askerid, String name, String createTime, String endDate,
			String stustatus, String ispay) {
		// TODO Auto-generated method stub
		return studentsMapper.selectAll(setValue, limit, netpusherid, askerid, name, createTime, endDate, stustatus, ispay);
	}
	
	@Override
	public List<Students> selectAskersAll(Integer setValue, Integer limit,String netpusherid,String askerid, String name, String createTime, String endDate,
			String stustatus, String ispay) {
		// TODO Auto-generated method stub
		return studentsMapper.selectAskersAll(setValue, limit, netpusherid, askerid, name, createTime, endDate, stustatus, ispay);
	}

	@Override
	public int getCount(String netpusherid,String askerid,String name, String createTime, String endDate, String stustatus, String ispay) {
		// TODO Auto-generated method stub
		return studentsMapper.getCount(netpusherid, askerid, name, createTime, endDate, stustatus, ispay);
	}

	@Override
	public List<Students> selectAllotZXS() {
		// TODO Auto-generated method stub
		return studentsMapper.selectAllotZXS();
	}

}
